//防止跟用户相关的所有请求
import { request } from '../utils/index'
// 1.登录请求
export function loginAPI(fromData){
    request ({
        url:'/login',
        method:'POST',
        data:fromData
    })
}
// 2.获取用户信息
export function getUser(){
    request ({
        url:'/user',
        method:'GET'
    })
}